Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / ArrayHelper Class / Clone Method / Clone<T>(T[],Int32) Method
The type of element in array.
The array source to clone.
An integer value indicates the number of elements to clone.


In This Topic
    Clone<T>(T[],Int32) Method
    In This Topic
    Clones the specified array to a new array.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Clone(Of T)( _
       ByVal source() As T, _
       ByVal length As Integer _
    ) As T()
    'Usage
     
    
    Dim source() As T
    Dim length As Integer
    Dim value() As T
     
    value = ArrayHelper.Clone(Of T)(source, length)
    public static T[] Clone<T>( 
       T[] source,
       int length
    )

    Parameters

    source
    The array source to clone.
    length
    An integer value indicates the number of elements to clone.

    Type Parameters

    T
    The type of element in array.

    Return Value

    A T[] value represents the cloned array.
    See Also